const { override, fixBabelImports,addWebpackAlias } = require('customize-cra');

const path = require( 'path' )

function getAlias( url ){
    return path.join( __dirname,url )
}
module.exports = override(
      fixBabelImports('import', {
       libraryName: 'antd-mobile',
        style: 'css',
      }),
      addWebpackAlias(
          {
              '@': getAlias( './src'),
              'assets':getAlias( './src/assets' ),
              'utils':getAlias( './src/utils' ),
              'pages':getAlias( './src/pages' ),
              'comp':getAlias( './src/components' )
          }
      )
 );